﻿<Window x:Class="SterlingQuoteCollector.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Sterling Quote Collector" Height="250" Closing="OnWindowClosing"
    AllowsTransparency="False"    
    ShowInTaskbar="True"    
    Background="Transparent"    
    WindowStyle="ThreeDBorderWindow"
    SizeToContent="Width">

    <Grid Background="#FFD7E9FA">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="30" />
            <ColumnDefinition Width="120" />
            <ColumnDefinition Width="3" />
            <ColumnDefinition Width="200" />
            <ColumnDefinition Width="10" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="25" />
            <RowDefinition Height="15" />
            <RowDefinition Height="15" />
            <RowDefinition Height="15" />
            <RowDefinition Height="15" />
            <RowDefinition Height="15" />
            <RowDefinition Height="15" />
            <RowDefinition Height="15" />
            <RowDefinition Height="15" />
            <RowDefinition Height="50" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="3" HorizontalAlignment="Center" VerticalAlignment="Top" FontWeight="Bold" FontSize="14">Sterling Quote Collector</TextBlock>

        <TextBlock Grid.Column="1" Grid.Row="1" HorizontalAlignment="Right">Symbols loaded:</TextBlock>
        <TextBlock Grid.Column="3" Grid.Row="1" Name="_labelNumRequests">0</TextBlock>

        <TextBlock Grid.Column="1" Grid.Row="3" HorizontalAlignment="Right">Total Updates:</TextBlock>
        <TextBlock Grid.Column="3" Grid.Row="3" Name="_labelTotalUpdates">0</TextBlock>
        <TextBlock Grid.Column="1" Grid.Row="4" HorizontalAlignment="Right">Timestamp:</TextBlock>
        <TextBlock Grid.Column="3" Grid.Row="4" Name="_labelLastTimestamp"></TextBlock>
        <TextBlock Grid.Column="1" Grid.Row="5" HorizontalAlignment="Right">Messages per second:</TextBlock>
        <TextBlock Grid.Column="3" Grid.Row="5" Name="_labelMsgPerSecLast">0</TextBlock>

        <TextBlock Grid.Column="1" Grid.Row="7" HorizontalAlignment="Right">Collection stats:</TextBlock>
        <TextBlock Grid.Column="3" Grid.Row="7" Name="_labelCollectionStat">0</TextBlock>

        <TextBlock Grid.Column="1" Grid.Row="8" HorizontalAlignment="Right">Database writes:</TextBlock>
        <TextBlock Grid.Column="3" Grid.Row="8" Name="_labelWriteStat">0</TextBlock>
        
        <TextBlock Grid.Column="1" Grid.Row="9" HorizontalAlignment="Right">Failure message:</TextBlock>
        <TextBlock Grid.Column="3" Grid.Row="9" Name="_labelWriteFailure" TextWrapping="WrapWithOverflow"></TextBlock>

    </Grid>
</Window>
